{% extends 'my_center_base.html' %}
{% block title %}-个人信息{% endblock %}

{% block js_css %}
		<link rel="stylesheet" type="text/css" href="/static/css/myorder.css" />
{% endblock %}

{% block idea %}
		<!------------------------------idea------------------------------>
		<div class="address mt">
			<div class="wrapper clearfix">
				<a href="index.html" class="fl">首页</a>
				<span>/</span>
				<a href="{{ url('users:myorderq',kwargs={"page_num":1}) }}" class="on">我的订单</a>
				<span>/</span>
				<a href="#" class="on">订单详情</a>
			</div>
		</div>
{% endblock %}
		<!------------------------------Bott------------------------------>
{% block li %}
			<div>
						<h4>我的交易</h4>
						<ul>
							<li><a href="{{ url('shoppingcart:carts')}}">我的购物车</a></li>
							<li class="on"><a href="{{ url('users:myorderq',kwargs={"page_num":1}) }}">我的订单</a></li>

						</ul>
						<h4>个人中心</h4>
						<ul>
							<li><a href="/my_center">我的中心</a></li>
							<li><a href="/address">地址管理</a></li>
						</ul>
						<h4>账户管理</h4>
						<ul>
							<li><a href="/my_mygrxx">个人信息</a></li>
							<li><a href="/password">修改密码</a></li>
						</ul>
					</div>
{% endblock %}

{% block bott %}
	<div class="you fl">
					<div class="my clearfix">
						<h2>订单详情<a href="#">请谨防钓鱼链接或诈骗电话，了解更多&gt;</a></h2>
                        {% for x in order_id %}
						<h3>订单号：<span>{{ x.order_id }}</span></h3>
                        {% endfor %}
					</div>
					<div class="orderList">
						<div class="orderList1">
							<h3>未发货</h3>
							<div class="clearfix">
                                {% for i in order_goods %}
                                    {% for x in order_id %}
								<a href="#" class="fl"><img src="{{ i.sku.default_image }}" style="height: 100px; width: 100px"/></a>
                                        <br>
                                        <br>
                                        <br>
                                        <br>

								<p class="fl"><a href="#">{{ i.sku.name }}</a><a href="#">¥{{ i.sku.price }}×{{ i.count }}</a></p>
                                        <br>
                                        <br>
                                        <br>
                                        <br>
                                        <br>
                                        <br>
                                {% endfor %}
                            {% endfor %}
							</div>
						</div>
						<div class="orderList1">
							<h3>收货信息</h3>
                            {% for address in order_id %}
							<p>姓 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：<span>{{ address.address.receiver }}</span></p>
							<p>联系电话：<span>{{ address.address.mobile }}</span></p>
							<p>收货地址：<span>{{ address.address.place }} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {{ address.address.detail_address }}</span></p>
						</div>
						<div class="orderList1">
							<h3>支付方式及送货时间</h3>
                            {% if address.pay_method==2 %}
                            <p>支付方式：<span>在线支付</span></p>
                            {% else %}
							<p>支付方式：<span>货到付款</span></p>
                            {% endif %}
							<p>送货时间：<span>不限送货时间</span></p>
						</div>
						<div class="orderList1 hei">
							<h3><strong>商品总价：</strong><span>¥{{ address.total_amount }}</span></h3>
							<p><strong>运费：</strong><span>¥{{ address.freight }}</span></p>
							<p><strong>订单金额：</strong><span>¥{{ address.total_amount }}</span></p>
							<p><strong>实付金额：</strong><span>¥{{ address.total_amount }}</span></p>
						</div>
                    {% endfor %}
					</div>


				</div>
{% endblock %}


